package com.robot.services.impl;


import com.robot.daos.OrderDetailDao;
import com.robot.models.OrderDetail;
import com.robot.services.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by renruiquan on 2017/6/26.
 */

@Service("userGroupService")
public class OrderDetailServiceImpl implements OrderDetailService {

    @Autowired
    private OrderDetailDao OrderDetailDao;

    @Override
    public List<OrderDetail> getAllList() {
        return OrderDetailDao.getAllList();
    }

    @Override
    public int add(OrderDetail orderDetail) {
        return OrderDetailDao.add(orderDetail);
    }
}
